<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: sw::LayoutHost类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('classsw_1_1_layout_host.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classsw_1_1_layout_host-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">sw::LayoutHost类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p>用于托管元素的布局方式的对象类型，是所有布局方式类型的基类  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_layout_host_8h_source.html">LayoutHost.h</a>&gt;</code></p>
<div class="dynheader">
类 sw::LayoutHost 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsw_1_1_layout_host.png" usemap="#sw::LayoutHost_map" alt=""/>
  <map id="sw::LayoutHost_map" name="sw::LayoutHost_map">
<area href="classsw_1_1_i_layout.html" title="布局接口" alt="sw::ILayout" shape="rect" coords="0,0,138,24"/>
<area href="classsw_1_1_canvas_layout.html" title="绝对位置布局方式" alt="sw::CanvasLayout" shape="rect" coords="148,112,286,136"/>
<area href="classsw_1_1_dock_layout.html" title="停靠布局" alt="sw::DockLayout" shape="rect" coords="148,168,286,192"/>
<area href="classsw_1_1_fill_layout.html" title="一种将全部元素都铺满的布局，一般用于在只有一个子元素的时候将该元素铺满整个可用区域" alt="sw::FillLayout" shape="rect" coords="148,224,286,248"/>
<area href="classsw_1_1_grid_layout.html" title="网格布局方式" alt="sw::GridLayout" shape="rect" coords="148,280,286,304"/>
<area href="classsw_1_1_stack_layout_h.html" title="横向堆叠布局" alt="sw::StackLayoutH" shape="rect" coords="148,336,286,360"/>
<area href="classsw_1_1_stack_layout_v.html" title="纵向堆叠布局" alt="sw::StackLayoutV" shape="rect" coords="148,392,286,416"/>
<area href="classsw_1_1_uniform_grid_layout.html" title="均匀大小网格布局" alt="sw::UniformGridLayout" shape="rect" coords="148,448,286,472"/>
<area href="classsw_1_1_wrap_layout_h.html" title="横向自动换行布局" alt="sw::WrapLayoutH" shape="rect" coords="148,504,286,528"/>
<area href="classsw_1_1_wrap_layout_v.html" title="纵向自动换行布局" alt="sw::WrapLayoutV" shape="rect" coords="148,560,286,584"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ace58d1aefa8427892f71bfa8b91e9281" id="r_ace58d1aefa8427892f71bfa8b91e9281"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ace58d1aefa8427892f71bfa8b91e9281">Associate</a> (<a class="el" href="classsw_1_1_i_layout.html">ILayout</a> *<a class="el" href="classsw_1_1_dictionary.html">obj</a>)</td></tr>
<tr class="memdesc:ace58d1aefa8427892f71bfa8b91e9281"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置关联的对象，每个LayoutHost只能关联一个对象  <br /></td></tr>
<tr class="separator:ace58d1aefa8427892f71bfa8b91e9281"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab89962ec32dec364e4e18ea0afe44d52" id="r_ab89962ec32dec364e4e18ea0afe44d52"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab89962ec32dec364e4e18ea0afe44d52">GetLayoutTag</a> () <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:ab89962ec32dec364e4e18ea0afe44d52"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取布局标记  <br /></td></tr>
<tr class="separator:ab89962ec32dec364e4e18ea0afe44d52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c6c9750b12c5816608d78d72225b872" id="r_a0c6c9750b12c5816608d78d72225b872"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0c6c9750b12c5816608d78d72225b872">GetChildLayoutCount</a> () <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:a0c6c9750b12c5816608d78d72225b872"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取关联对象子控件的数量  <br /></td></tr>
<tr class="separator:a0c6c9750b12c5816608d78d72225b872"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd04747a5d0395d5f95f06185e28b964" id="r_abd04747a5d0395d5f95f06185e28b964"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_i_layout.html">ILayout</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abd04747a5d0395d5f95f06185e28b964">GetChildLayoutAt</a> (<a class="el" href="classsw_1_1_dictionary.html">int</a> index) <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:abd04747a5d0395d5f95f06185e28b964"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取关联对象对应索引处的子控件  <br /></td></tr>
<tr class="separator:abd04747a5d0395d5f95f06185e28b964"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7099b15d8916a42f58de10d0266e89f6" id="r_a7099b15d8916a42f58de10d0266e89f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="structsw_1_1_size.html">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7099b15d8916a42f58de10d0266e89f6">GetDesireSize</a> () <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:a7099b15d8916a42f58de10d0266e89f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取关联对象所需尺寸  <br /></td></tr>
<tr class="separator:a7099b15d8916a42f58de10d0266e89f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a035aefcab7040b1ac1503e4f25501e48" id="r_a035aefcab7040b1ac1503e4f25501e48"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a035aefcab7040b1ac1503e4f25501e48">SetDesireSize</a> (<a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="structsw_1_1_size.html">Size</a> &amp;size) <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:a035aefcab7040b1ac1503e4f25501e48"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置关联对象所需的尺寸  <br /></td></tr>
<tr class="separator:a035aefcab7040b1ac1503e4f25501e48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa520181822f89994362a010237687b3f" id="r_aa520181822f89994362a010237687b3f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa520181822f89994362a010237687b3f">Measure</a> (<a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="structsw_1_1_size.html">Size</a> &amp;<a class="el" href="classsw_1_1_dictionary.html">availableSize</a>) <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:aa520181822f89994362a010237687b3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">测量控件所需尺寸  <br /></td></tr>
<tr class="separator:aa520181822f89994362a010237687b3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52f5e12df00e032fd424db409fd73951" id="r_a52f5e12df00e032fd424db409fd73951"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a52f5e12df00e032fd424db409fd73951">Arrange</a> (<a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="structsw_1_1_rect.html">Rect</a> &amp;<a class="el" href="classsw_1_1_dictionary.html">finalPosition</a>) <a class="el" href="classsw_1_1_dictionary.html">override</a></td></tr>
<tr class="memdesc:a52f5e12df00e032fd424db409fd73951"><td class="mdescLeft">&#160;</td><td class="mdescRight">安排控件位置  <br /></td></tr>
<tr class="separator:a52f5e12df00e032fd424db409fd73951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4206d0a20d92581d33a4510fb2ba1871" id="r_a4206d0a20d92581d33a4510fb2ba1871"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4206d0a20d92581d33a4510fb2ba1871">MeasureOverride</a> (<a class="el" href="structsw_1_1_size.html">Size</a> &amp;<a class="el" href="classsw_1_1_dictionary.html">availableSize</a>)=0</td></tr>
<tr class="memdesc:a4206d0a20d92581d33a4510fb2ba1871"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写此函数计算所需尺寸  <br /></td></tr>
<tr class="separator:a4206d0a20d92581d33a4510fb2ba1871"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac28cdcd081c105a2acedfddce436897d" id="r_ac28cdcd081c105a2acedfddce436897d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac28cdcd081c105a2acedfddce436897d">ArrangeOverride</a> (<a class="el" href="structsw_1_1_size.html">Size</a> &amp;<a class="el" href="classsw_1_1_dictionary.html">finalSize</a>)=0</td></tr>
<tr class="memdesc:ac28cdcd081c105a2acedfddce436897d"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写此函数安排控件  <br /></td></tr>
<tr class="separator:ac28cdcd081c105a2acedfddce436897d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>用于托管元素的布局方式的对象类型，是所有布局方式类型的基类 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a52f5e12df00e032fd424db409fd73951" name="a52f5e12df00e032fd424db409fd73951"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52f5e12df00e032fd424db409fd73951">&#9670;&#160;</a></span>Arrange()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a> sw::LayoutHost::Arrange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="structsw_1_1_rect.html">Rect</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>finalPosition</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>安排控件位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">finalPosition</td><td>最终控件所安排的位置 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#a5616892d25adc2666e83211036db7d80">sw::ILayout</a>.</p>

</div>
</div>
<a id="ac28cdcd081c105a2acedfddce436897d" name="ac28cdcd081c105a2acedfddce436897d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac28cdcd081c105a2acedfddce436897d">&#9670;&#160;</a></span>ArrangeOverride()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a> sw::LayoutHost::ArrangeOverride </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structsw_1_1_size.html">Size</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>finalSize</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写此函数安排控件 </p>

<p>在 <a class="el" href="classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d">sw::CanvasLayout</a>, <a class="el" href="classsw_1_1_dock_layout.html#a095344f448138136a4988d4323dae0f9">sw::DockLayout</a>, <a class="el" href="classsw_1_1_fill_layout.html#aa748a6d627a02ae1373ca987ea16fbd4">sw::FillLayout</a>, <a class="el" href="classsw_1_1_grid_layout.html#a77f696d86389ff0360bd65629a5edab4">sw::GridLayout</a>, <a class="el" href="classsw_1_1_stack_layout.html#a45b50cf0df7e1ce86e817a47940e7226">sw::StackLayout</a>, <a class="el" href="classsw_1_1_stack_layout_h.html#a1b527c76303aed32cad3f4a13bd991a2">sw::StackLayoutH</a>, <a class="el" href="classsw_1_1_stack_layout_v.html#a383ec238bac4bdb91d20e39b8ac8a0e1">sw::StackLayoutV</a>, <a class="el" href="classsw_1_1_uniform_grid_layout.html#a62cfcb1c77d3d25b7adf07730aa3a144">sw::UniformGridLayout</a>, <a class="el" href="classsw_1_1_wrap_layout.html#ab9be93cbdff99c85100c72559ed36b1b">sw::WrapLayout</a>, <a class="el" href="classsw_1_1_wrap_layout_h.html#a1c8f53445bcda82c733b1e6d1e45b788">sw::WrapLayoutH</a> , 以及 <a class="el" href="classsw_1_1_wrap_layout_v.html#a010cae9030f68a485430c9cbe4b230a6">sw::WrapLayoutV</a> 内被实现.</p>

</div>
</div>
<a id="ace58d1aefa8427892f71bfa8b91e9281" name="ace58d1aefa8427892f71bfa8b91e9281"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace58d1aefa8427892f71bfa8b91e9281">&#9670;&#160;</a></span>Associate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">void</a> sw::LayoutHost::Associate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_i_layout.html">ILayout</a> *</td>          <td class="paramname"><span class="paramname"><em>obj</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置关联的对象，每个LayoutHost只能关联一个对象 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td>要关联的对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abd04747a5d0395d5f95f06185e28b964" name="abd04747a5d0395d5f95f06185e28b964"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd04747a5d0395d5f95f06185e28b964">&#9670;&#160;</a></span>GetChildLayoutAt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_i_layout.html">ILayout</a> &amp; sw::LayoutHost::GetChildLayoutAt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">int</a></td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取关联对象对应索引处的子控件 </p>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#ab6a7ef612525020012594123732d24d4">sw::ILayout</a>.</p>

</div>
</div>
<a id="a0c6c9750b12c5816608d78d72225b872" name="a0c6c9750b12c5816608d78d72225b872"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c6c9750b12c5816608d78d72225b872">&#9670;&#160;</a></span>GetChildLayoutCount()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">int</a> sw::LayoutHost::GetChildLayoutCount </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取关联对象子控件的数量 </p>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#aa07f4408aab5c6b088b69ede010fccd9">sw::ILayout</a>.</p>

</div>
</div>
<a id="a7099b15d8916a42f58de10d0266e89f6" name="a7099b15d8916a42f58de10d0266e89f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7099b15d8916a42f58de10d0266e89f6">&#9670;&#160;</a></span>GetDesireSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="structsw_1_1_size.html">Size</a> sw::LayoutHost::GetDesireSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取关联对象所需尺寸 </p>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#a081e12b24d148735bfeeb5cc97b230f1">sw::ILayout</a>.</p>

</div>
</div>
<a id="ab89962ec32dec364e4e18ea0afe44d52" name="ab89962ec32dec364e4e18ea0afe44d52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab89962ec32dec364e4e18ea0afe44d52">&#9670;&#160;</a></span>GetLayoutTag()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">uint64_t</a> sw::LayoutHost::GetLayoutTag </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取布局标记 </p>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#a5b95a9aba620f4f42447869f5e7f75c3">sw::ILayout</a>.</p>

</div>
</div>
<a id="aa520181822f89994362a010237687b3f" name="aa520181822f89994362a010237687b3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa520181822f89994362a010237687b3f">&#9670;&#160;</a></span>Measure()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a> sw::LayoutHost::Measure </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="structsw_1_1_size.html">Size</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>availableSize</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>测量控件所需尺寸 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">availableSize</td><td>可用的尺寸 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#afcdbdecd5f99cdb25b891c7dc3093fdb">sw::ILayout</a>.</p>

</div>
</div>
<a id="a4206d0a20d92581d33a4510fb2ba1871" name="a4206d0a20d92581d33a4510fb2ba1871"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4206d0a20d92581d33a4510fb2ba1871">&#9670;&#160;</a></span>MeasureOverride()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a> sw::LayoutHost::MeasureOverride </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structsw_1_1_size.html">Size</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>availableSize</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写此函数计算所需尺寸 </p>

<p>在 <a class="el" href="classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5">sw::CanvasLayout</a>, <a class="el" href="classsw_1_1_dock_layout.html#a62fcb5b4236d5706caadb23ac557139a">sw::DockLayout</a>, <a class="el" href="classsw_1_1_fill_layout.html#a5ef072479f4f0019c1b58427f1c36098">sw::FillLayout</a>, <a class="el" href="classsw_1_1_grid_layout.html#aac702cbbed9459c559d85c337313d3a9">sw::GridLayout</a>, <a class="el" href="classsw_1_1_stack_layout.html#aeae06d336288887cf29c912aee4c03b6">sw::StackLayout</a>, <a class="el" href="classsw_1_1_stack_layout_h.html#ab5ae73207dfc9020a799c3fd1a4d9231">sw::StackLayoutH</a>, <a class="el" href="classsw_1_1_stack_layout_v.html#a11f007de647c9b1c88120aeed9ea65b7">sw::StackLayoutV</a>, <a class="el" href="classsw_1_1_uniform_grid_layout.html#aaf9adca410dd56a6736c5ec0b96a167f">sw::UniformGridLayout</a>, <a class="el" href="classsw_1_1_wrap_layout.html#a5d7818fc025713f3a29df602ca934178">sw::WrapLayout</a>, <a class="el" href="classsw_1_1_wrap_layout_h.html#a66eacfc28ef8001230272227cb4fcbe3">sw::WrapLayoutH</a> , 以及 <a class="el" href="classsw_1_1_wrap_layout_v.html#a3e87afe055e4d53c9ac4c6ad0794ddf4">sw::WrapLayoutV</a> 内被实现.</p>

</div>
</div>
<a id="a035aefcab7040b1ac1503e4f25501e48" name="a035aefcab7040b1ac1503e4f25501e48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a035aefcab7040b1ac1503e4f25501e48">&#9670;&#160;</a></span>SetDesireSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsw_1_1_dictionary.html">virtual</a> <a class="el" href="classsw_1_1_dictionary.html">void</a> sw::LayoutHost::SetDesireSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsw_1_1_dictionary.html">const</a> <a class="el" href="structsw_1_1_size.html">Size</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>size</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置关联对象所需的尺寸 </p>

<p>实现了 <a class="el" href="classsw_1_1_i_layout.html#ab5c5df73b4a3e76840c5d16ab1dfb7fc">sw::ILayout</a>.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_layout_host_8h_source.html">LayoutHost.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>sw</b></li><li class="navelem"><a class="el" href="classsw_1_1_layout_host.html">LayoutHost</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
